﻿<%@ Page Language="vb" ContentType="text/xml" AutoEventWireup="false" CodeBehind="rss.aspx.vb" Inherits="GamerZ.rss" %>

<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
    SelectCommand="SELECT [Gamerz_ID], [Gamerz_Name], [User_ID], [Gamerz_Image], [Gamerz_Publisher], [Gamerz_Overview], [Gamerz_Graphics], [Gamerz_date] FROM [GamerZ]">
</asp:SqlDataSource>




<asp:Repeater id="rptRSS" runat="server" DataSourceID="SqlDataSource1">
  <HeaderTemplate>
    <rss version="2.0">
      <channel>
        <title> Gamez </title>
        <description>Lastest Games </description>
  </HeaderTemplate>
  <ItemTemplate>
        <item>
          <title><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Gamerz_Name"))%></title>
          <description><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Gamerz_Overview"))%></description>
          <link> Details.aspx?D=<%# FormatForXML(DataBinder.Eval(Container.DataItem, "Gamerz_ID"))%></link>
          <author><%# FormatForXML(DataBinder.Eval(Container.DataItem, "User_ID"))%></author>
          <pubDate><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Gamerz_date"))%></pubDate>
        </item>
  </ItemTemplate>
  <FooterTemplate>
      </channel>
    </rss>  
  </FooterTemplate>
</asp:Repeater>

